Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Target hostapp hook: Only patch should_be_operated_by__release if null or older release #1891

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

cywang117
Copy link
Contributor

@cywang117 cywang117 commented Dec 9, 2024

With Supervisor managed HUP, we'll soon start relying on should_be_operated_by__release to determine the target hostapp release. A change to this field will trigger the device update hook for the Supervisor to pick up and trigger HUP.

The Supervisor reports os_version and os_variant on device provision, and the current target hostapp hook will set this field when receiving that current state report. However, SV manage HUP means this field could be set prior to device provision, so we don't want to overwrite it if it's not null.

Also, if the should_be_operated_by field has a release that's older than the reported OS release
though, we should update the field to the reported OS release.

Change-type: patch

@cywang117 cywang117 force-pushed the hostapp-hook-only-patch-operated-by-if-null branch 3 times, most recently from 5b83d46 to 7115ace Compare December 10, 2024 02:06
@cywang117 cywang117 changed the title Target hostapp hook: Only patch should_be_operated_by__release if null Target hostapp hook: Only patch should_be_operated_by__release if null or older release Dec 10, 2024
@flowzone-app flowzone-app bot enabled auto-merge December 10, 2024 02:19
…l or older release

With Supervisor managed HUP, we'll soon start relying on should_be_operated_by__release
to determine the target hostapp release. The Supervisor reports os_version and os_variant
on device provision, and the current target-hostapp hook will set the should_be_operated_by field
when receiving that initial state report. However, SV manage HUP means this field could be set
prior to device provision, so we don't want to overwrite it if it's not null.

If the should_be_operated_by field has a release that's older than the reported OS release
though, we should update the field to the reported OS release.

Change-type: patch
Signed-off-by: Christina Ying Wang <[email protected]>
@cywang117 cywang117 force-pushed the hostapp-hook-only-patch-operated-by-if-null branch from 7115ace to 2bde660 Compare December 13, 2024 21:27
@cywang117 cywang117 requested a review from thgreasi December 13, 2024 21:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant